package com.project.mapper;
import java.util.List;

import com.project.entity.po.TableNumber;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.entity.po.TableReserve;

/**
 * @ProjectName: 
 * @Package: 
 * @ClassName: 
 * @Author: ZhaoLongShi
 * @CreateDate: 
 */
public interface TableReserveMapper extends BaseMapper<TableReserve> {
    /**
     * 根据id删除预约信息(伪)
     * @param reserveId
     * @return
     */
    int delTableReserve(@Param("reserveId") Long reserveId);

    /**
     *  根据id修改订单状态状态
     * @param status
     * @param reserveId
     * @return
     */
    int updateStatus(@Param("status") Integer status,@Param("reserveId") Long reserveId);

    /**
     * 查询预定id
     * @param orderNumber
     * @return
     */
    TableReserve selectReserveIdByOrderNumber(@Param("orderNumber") String orderNumber);

    /**
     * 根据预约id 查询绑定的桌位信息
     * @param reserveId
     * @return
     */
    TableNumber selectTableNumberByReserveId(@Param("reserveId") Long reserveId);
}